package com.dfiov.cloud.msmtools.controller;

import com.dfiov.cloud.msmtools.entity.dto.VinDTO;
import com.pateo.qingcloud.framework.common.base.BaseRestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Api(value = "login", tags = "login")
@RestController
@AllArgsConstructor
@Slf4j
public class DfDevController {

    /**
     * login
     */
    @ApiOperation(value = "login", notes = "login")
    @PostMapping("/login")
    public BaseRestResponse<?> alogin(@RequestBody VinDTO vinDTO) {
        log.info("/login");
        return new BaseRestResponse<VinDTO>();
    }

    /**
     * login
     */
    @ApiOperation(value = "login", notes = "login")
    @GetMapping("/msmtools/getlogin")
    public BaseRestResponse<?> msgetlogin(@RequestParam String name) {
        log.info("/msgetlogin");
        return new BaseRestResponse<VinDTO>();
    }

    /**
     * login
     */
    @ApiOperation(value = "login", notes = "login")
    @GetMapping("/getlogin")
    public BaseRestResponse<?> getlogin(@RequestParam String name) {
        log.info("/getlogin");
        return new BaseRestResponse<VinDTO>();
    }

    /**
     * login
     */
    @ApiOperation(value = "login", notes = "login")
    @PostMapping("/api/login")
    public BaseRestResponse<?> blogin(@RequestBody VinDTO vinDTO) {
        log.info("/api/login");
        return new BaseRestResponse<>();
    }

    /**
     * login
     */
    @ApiOperation(value = "login", notes = "login")
    @PostMapping("/msmtools/login")
    public BaseRestResponse<?> clogin(@RequestBody VinDTO vinDTO) {
        log.info("/msmtools/login");
        return new BaseRestResponse<>();
    }

    /**
     * login
     */
    @ApiOperation(value = "login", notes = "login")
    @PostMapping("/msmtools/api/login")
    public BaseRestResponse<?> dlogin(@RequestBody VinDTO vinDTO) {
        log.info("/msmtools/api/login");
        return new BaseRestResponse<>();
    }

}
